package com.audaque.springboot.foshanupload.web.streamdemo.dynamice;

import com.audaque.springboot.foshanupload.WebJarApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;

//如果项目不需要数据库相关信息就排除此类的autoconfig
//把启动类放到同级下或让所有Java类都在启动类的子包下就可以完成基于Java注入bean的方式了
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class,scanBasePackages = "com.audaque.springboot.foshanupload.web.streamdemo.dynamice")
public class StreamdemoWebJarApplication   {
    public static void main(String[] args) {
        SpringApplication.run(WebJarApplication.class, args).registerShutdownHook();

    }


}
